package com.zking.service.impl;


import com.zking.dao.domain.Patient;
import com.zking.dao.mapper.Patient_LoginMapper;
import com.zking.service.Patient_LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class Patient_LoginServiceImpl implements Patient_LoginService {
    @Autowired
    private Patient_LoginMapper patientLoginMapper;

    public Patient getPatient(Patient patient){
        Patient patient2 = patientLoginMapper.queryPatient(patient);
        return patient2;
    }
    public boolean insertPatient(Patient patient){
      return  patientLoginMapper.insertPatient(patient);
    }
    public Patient getPatientByName(Patient patient){
        Patient patient1=patientLoginMapper.queryPatientByName(patient);
        return  patient1;
    }
}
